@extends('layouts.default')
@section('title','首页')
@section('content')
    @if(\Illuminate\Support\Facades\Auth::check())
        <div class="row" style="margin-top: 80px">
            <aside class="col-md-4">
                @include('shared._user_show',['user'=>\Illuminate\Support\Facades\Auth::user()])
                @include('shared._total',['user'=>\Illuminate\Support\Facades\Auth::user()])
            </aside>
            <div class="col-md-8">
                @include('posts.create')
                <hr />
                <h5 class="text-info text-center">文章列表</h5>
               @include('users.user_posts')
            </div>
        </div>
    @else
    <div class="p-3 rounded home-face" >
        <h1>欢迎来到东莞理工学院校园网站</h1>
        <h6>东莞理工学院校园网站是一个致力于为同学们提供一个综合学习和生活的良好平台，旨在创造一个良好的学习讨论空间，和方便的生活平台。</h6>
        <h6>在这里让你的大学生活更加精彩吧</h6>
        <p class="mt-3"><a class="btn btn-lg btn-warning" href="{{route('user.create')}}" role="button">注册账号</a></p>
    </div>
    @endif
@stop
